x86: define macros CPUINFO_features and CPUINFO_FEATURE_OFFSET
authorFeng Wu <feng.wu@intel.com>
Tue, 6 May 2014 11:51:27 +0000 (13:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 May 2014 11:51:27 +0000 (13:51 +0200)
commit5602b8e3f13849022a77ed74062e738910fdd684
treeae3788b73b703b1160a2fd5d49f209880c225af3
parentc42a3154a03c1d57cfa67988d109501cf4f35ae8
x86: define macros CPUINFO_features and CPUINFO_FEATURE_OFFSET

This patch defines macros CPUINFO_features and CPUINFO_FEATURE_OFFSET.
CPUINFO_features can be used as the base of the offset for cpu features,
while CPUINFO_FEATURE_OFFSET is used to define the right offset for
specific CPU feature.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Some further cleanup (both to the patch and to surrounding code).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/head.S
xen/arch/x86/x86_64/asm-offsets.c
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/cpufeature.h